<?php

use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;

class CreateTQConfigsTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('tq_configs', function (Blueprint $table) {
            $table->id();
            $table->string('key')->comment('键');
            $table->text('value')->nullable()->comment('值');
            $table->timestamps();
        });

        DB::statement("ALTER TABLE tq_configs comment '自有配置文件'");
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::dropIfExists('tq_configs');
    }
}
